<?php
class Common_Service_Get
{
    public static function getObj(){
        $lang=isset($_COOKIE['LANGUAGES'])?$_COOKIE['LANGUAGES']:'en';
        $class ='Common_Service_'.ucfirst(strtolower($lang));
        if(class_exists($class)){
            $obj = new $class($class);
        }else{
            $obj = new Common_Service_En();
        }
        return $obj;
    }

    public static function lang()
    {
        return self::getObj()->get();
    }

    public static function getProduct()
    {
        return self::getObj()->product();
    }

    public static function getClass($class='lang')
    {
        return self::getObj()->$class();
    }


}